# 元祖
# tuple = (元素1，元素2，元素3)

tuple_test = ("张三","lisi","王五",1,2,4,5)
print(f"type of tuple_test {type(tuple_test)}")

# 元祖的访问，通过下标去访问的
print(tuple_test[0])
print(tuple_test[1])
print(tuple_test[2])

# 查找元素的下标
print(tuple_test.index("王五"))
# 元祖的特点，构造后不能被修改

# 统计重复元素的个数
tuple_num = (1,1,1,2,2,2,4,2,4,4,567,444,6766,224,1,1,1,1)
print(tuple_num.count(1))
print(tuple_num.count(2))
print(tuple_num.count(4))